import dict from '@/views/home/dict'
export const careerfilters = (val) => {
  let res = ''

  dict.career.map(item => {
    if (item.code == val) {
      res = item.label
    }
  })
  return res
}
export const technologyStackfilters = (val, scope) => {
  let res = ''
  dict.career.map(item => {
    if (scope.row.career == item.code) {
      switch (item.code) {
        case 4:
          dict.javaTechnologyStack.map(item => {
            if (item.code == val) {
              res = item.label
            }
          })
          break;

        case 5:
          dict.webTechnologyStack.map(item => {
            if (item.code == val) {
              res = item.label
            }
          })
          break;
        case 6:
          dict.uiTechnologyStack.map(item => {
            if (item.code == val) {
              res = item.label
            }
          })
          break;
      }
    }
  })
  return res
}
